import service from '@/utils/request'
// 获取比赛列表
export function getContestList(params) {
    return service({
        url: '/MatchSettings/selectMatchSettings',
        method: 'get',
        params
    })
}
// 新增比赛
export function addContest(params) {
    return service({
        url: '/MatchSettings/insertMatchSettings',
        method: 'post',
        data: params
    })
}
//删除比赛
export function delContest(params) {
    return service({
        url: 'MatchSettings/deleteMatchSettingsById/' + params,
        method: 'delete',
    })
}
// 修改获奖比率
export function modifyAwardRatio(params) {
    return service({
        url: '/MatchSettings/updateMatchSettingDataAnalysisById',
        method: 'put',
        data: params
    })
}

// 回显获奖比率信息
export function getAwardRatio(params) {
    return service({
        url: '/MatchSettings/selectMatchSettingDataAnalysisById/' + params,
        method: 'get',
    })
}

